package cn.com.aiouyi.exception.business;

import cn.com.aiouyi.common.ExceptionCode;
import lombok.Getter;
import lombok.Setter;

/**
 * 业务异常（抛出此异常时将同时记录数据库）
 * @author hanson
 * 
 */
@Getter
@Setter
public class BusinessRecordException extends BusinessException{
    private static final long serialVersionUID = 1L;
    
    public BusinessRecordException(ExceptionCode exceptionCode) {
        super(exceptionCode.toString());
        this.exceptionCode = exceptionCode;
    }
    
    public BusinessRecordException(String message, Throwable throwable) {
        super(message, throwable);  
    }  
  
    public BusinessRecordException(String message) {  
        super(message);  
    }  
  
    public BusinessRecordException(Throwable throwable) {  
        super(throwable);  
    }
}
